package com.sfx.distributeLockStock.dao.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2024-02-06
 * Time: 15:41
 */
@Mapper
public interface IMySQLLockMapper {

    @Select("select * from distribute_lock where lockName = #{lockName} for update")
    void selectLockForUpdate(@Param("lockName") String lockName);

}
